# -*- coding: utf-8 -*-
# File : my_plot2.py
# Author: taoyahui
# Date : 2022/6/8

import matplotlib.pyplot as plt
import numpy as np
import math

x_data = [i for i in np.arange(0, 2 * math.pi + 0.01, 0.01)]
print(f'x_data 的内容为 {x_data}')
y_data = [math.sin(i) for i in x_data]
print(f'y_data 的内容为 {y_data}')
plt.plot(x_data, y_data)
plt.show()
plt.close()
